import time
import unittest
import unittestreport
from framework.Function.ModbusBasicFunction import function


function.connect()

suite = unittest.TestSuite()

#suite.addTest(Process.ProcessShield("testOn"))


runner = unittestreport.TestRunner(suite,
                 filename=f"{time.strftime('%Y年%m月%d日 %H时%M分%S秒', time.localtime())}TestReport.html",
                 report_dir="./reports",
                 title='测试报告',
                 tester='liyifan@zongweitech.com',
                 desc="ZwAutoTest 自动化测试报告",
                 templates=1
                 )

runner.run()

function.disconnect()